package com.reyco1.events
{
	import flash.display.DisplayObject;
	
	public class LoaderEvent extends BaseEvent
	{
		public static const COMPLETE:String 		= "LoaderEvent.onComplete";
		public static const FLEX_COMPLETE:String 	= "LoaderEvent.onFlexComplete";
		public static const PROGRESS:String 		= "LoaderEvent.onProgress";
		public static const OPEN:String 			= "LoaderEvent.onOpen";
		public static const INIT:String 			= "LoaderEvent.onInit";
		public static const UNLOAD:String 			= "LoaderEvent.onUnload";
		public static const HTTP_STATUS:String 		= "LoaderEvent.onHttpStatus";
		public static const IO_ERROR:String 		= "LoaderEvent.onIOError";
		public static const SECURITY_ERROR:String 	= "LoaderEvent.onSecurityError";
		public static const CONNECT:String 			= "LoaderEvent.onConnect";
		public static const CLOSE:String 			= "LoaderEvent.onClose";
		public static const UNABLE_TO_LOAD:String 	= "LoaderEvent.onUnableToLoad";
		
		protected var _bytesLoaded:Number;
		protected var _bytesTotal:Number;
		protected var _percent:Number;
		protected var _url:String;
		protected var _contentType:String;
		protected var _method:String;
		protected var _content:DisplayObject;
		protected var _status:int;
		protected var _text:String;
		protected var _data:*;
		
		public function LoaderEvent(type:String, objDetails:* = null, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, objDetails, bubbles, cancelable);
		}
		
		public function get bytesLoaded():Number
		{
			return _bytesLoaded;
		}
		
		public function set bytesLoaded(value:Number):void
		{
			_bytesLoaded = value;
		}
		
		public function get bytesTotal():Number
		{
			return _bytesTotal;
		}
		
		public function set bytesTotal(value:Number):void
		{
			_bytesTotal = value;
		}
		
		public function get percent():Number
		{
			return _percent;
		}
		
		public function set percent(value:Number):void
		{
			_percent = value;
		}
		
		public function get url():String
		{
			return _url;
		}
		
		public function set url(value:String):void
		{
			_url = value;
		}
		
		public function get contentType():String
		{
			return _contentType;
		}
		
		public function set contentType(value:String):void
		{
			_contentType = value;
		}
		
		public function get method():String
		{
			return _method;
		}
		
		public function set method(value:String):void
		{
			_method = value;
		}
		
		public function get content():DisplayObject
		{
			return _content;
		}
		
		public function set content(value:DisplayObject):void
		{
			_content = value;
		}
		
		public function get status():int
		{
			return _status;
		}
		
		public function set status(value:int):void
		{
			_status = value;
		}
		
		public function get text():String
		{
			return _text;
		}
		
		public function set text(value:String):void
		{
			_text = value;
		}
		
		public function get data():*
		{
			return _data;
		}
		
		public function set data(value:*):void
		{
			_data = value;
		}
		
	}
}